<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <script type="text/javascript" src="https://unpkg.com/qrcode@1.5.1/build/qrcode.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-y/vue/2.6.14/vue.min.js"></script><script type="text/javascript" src="https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/index.min.js"></script><link rel="stylesheet" href="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/element-ui/2.15.7/theme-chalk/index.min.css" />
    <title>121-在线二维码生成</title>
    <script type="module" crossorigin src="../../../../static/js/121-index.html-1a3a83f8.js"></script>
    <link rel="modulepreload" crossorigin href="../../../../static/common/modulepreload-polyfill-3cfb730f.js">
  </head>

  <body>
    <div id="app">
      <el-form label-width="80px">
        <el-form-item>
          <el-button type="primary" @click="createQrcode">生成二维码</el-button>
          <el-button type="success" @click="save">保存图片</el-button>
        </el-form-item>
        <el-form-item label="原文">
          <el-input type="textarea" :rows="3" v-model="content"></el-input>
        </el-form-item>
        <el-form-item label="大小">
          <el-input-number v-model="size" :min="32" :max="2048"></el-input-number>
        </el-form-item>
        <el-form-item label="二维码">
          <el-image v-if="codeUrl" :src="codeUrl"></el-image>
        </el-form-item>
      </el-form>
    </div>
    
  </body>
</html>
